package net.hn.hnms.biz.analysis.domain.enums;

import lombok.Getter;

@Getter
public enum FireScoreCalculateEnum {

    STAFF_SAFETY_QUALITY("20", "2001", "", "矿井人员安全素质", "", ""),
    SAFETY_AWARENESS_COAL_MINEFIRE("20", "2001", "200101", "煤矿火灾事故安全意识", "", ""),
    FIRE_RESCUE_SELF_RESCURE_CAPABILITY("20", "2001", "200102", "火灾救援与自救能力", "", ""),
    JOB_QUALIFICATION_AND_ABILITY("20", "2001", "200103", "上岗作业资质能力", "", ""),
    INTERNAL_FIRE_RISK_LEVEL("20", "2002", "", "内因火灾", "", ""),
    COALFACE_TEMPERATURE("20", "2002", "200201", "工作面温度", "", ""),
    COAL_SPONTANEOUS_COMBUSTION_TENDENCY_LEVEL("20", "2002", "200202", "煤的自然倾向性", "", ""),
    EXTERNAL_FIRE_RISK_LEVEL("20", "2003", "", "外因火灾", "", ""),
    TEMPERATURE_MONITOR_EARLY_WARNING("20", "2003", "200301", "温度监测预警", "", ""),
    KEYGAS_MONITOR_EARLY_WARNING("20", "2003", "200302", "烟雾监测预警", "", ""),
    SMOKE_MONITOR_EARLY_WARNING("20", "2003", "200303", "烟雾监测预警", "", ""),
    FIRE_SAFETY_MANAGEMENT("20", "2004", "", "火灾安全管理", "", ""),
    COALMINE_FIRE_SAFETY_EDUCATION_AND_TRAINING("20", "2004", "200401", "煤矿火灾安全教育培训", "", ""),
    RESPONSE_ABILITY_TO_FIRE_ACCIDENTS("20", "2004", "200402", "管理人员对火灾事故应对能力", "", ""),
    FIRE_ACCIDENT_PREVENTION_INVESTMENT("20", "2004", "200403", "火灾事故预防投入", "", "");


    private final String firstCode;

    private final String secondCode;

    private final String thirdCode;

    private final String description;

    private final String calculateIndexValue;

    private final String calculateScore;

    FireScoreCalculateEnum(String firstCode, String secondCode, String thirdCode, String description, String calculateIndexValue, String calculateScore) {
        this.firstCode = firstCode;
        this.secondCode = secondCode;
        this.thirdCode = thirdCode;
        this.description = description;
        this.calculateIndexValue = calculateIndexValue;
        this.calculateScore = calculateScore;
    }

    public static FireScoreCalculateEnum getFireScoreCalculateEnum(String firstCode, String secondCode, String thirdCode) {
        for (FireScoreCalculateEnum fireScoreCalculateEnum : FireScoreCalculateEnum.values()) {
            if (fireScoreCalculateEnum.getFirstCode().equals(firstCode) && fireScoreCalculateEnum.getSecondCode().equals(secondCode) && fireScoreCalculateEnum.getThirdCode().equals(thirdCode)) {
                return fireScoreCalculateEnum;
            }
        }
        return null;
    }
}
